﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MasterPage.master" Inherits="System.Web.Mvc.ViewPage<EPiServer.Models.StartPage>" %>
<%@ Import Namespace="EPiServer" %>
<%@ Import Namespace="EPiServer.Models" %>
<asp:Content ContentPlaceHolderID="MainRegion" runat="server">

	<div id="StageArea" class="StartPage">
	
		<div id="ImageArea">
			<img id="FrontImage" src="<%= Model.Image %>" alt="<%= EPiServer.Html.Resource("EPiServer,navigation.startpage") %>" />
			<div id="SecondaryBodyArea">
				<%= Model.SecondaryBody %>
			</div>
		</div>
		
		<div id="MainContentArea">
		
			<div id="MainBodyArea">
                <%= Model.MainBody %>
			</div>
			
			<div id="NewsArea">
                <% Html.RenderPartial("PageList", new ListData {Title=Model.NewsRoot.Title(), List=Model.NewsList}); %>
			</div>
			
			<div id="EventsArea">
                <div class="pageList"> 
                    <h2>Events</h2> 
                    <ul> 
                	<%foreach(var item in Model.EventList) { %>
                        <li> 		    
                            <span class="dateTime"><%= item.Changed.ToShortDateString() %></span> 
                			<h3> 
                				<a title="Read more" href="<%= item.LinkURL %>"><%= item.PageName %></a> 
                			</h3> 
                		</li> 
                    <% } %>
                    </ul> 
                </div>                 
			</div>

		</div>
	</div>
</asp:Content>